<link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#dateinbegin" ).datepicker();
        $( "#dateinend" ).datepicker();
    });
</script>

<div style="margin-top: 8px;padding: 10px;font-size: 16px;">
    <form action="/admini/managereport/buyshop"  method="post" style="margin:0px" id="form1">
      <label for="starttime">日期时间：</label><input type="text" id="dateinbegin" name="dateinbegin" value="<?php echo $this->dateinbegin; ?>" />
      <label for="endtime">--&nbsp;</label><input type="text" id="dateinend" name="dateinend" value="<?php echo $this->dateinend; ?>" />
      <input type="submit" id="queryButton" name="queryButton" value="查询"/>
    </form>
</div>
<div class="dataTable">
    <table>          
        <tr>
            <td class="w0">总代购订购数:</td>
            <td class="w1"><?php echo $this->allShopBuyCount; ?></td>
            <td class="w0">总代购金额:</td> 
            <td class="w1"><?php echo number_format($this->allShopBuyMoney,2); ?></td> 
            <td class="w0">总代购会员数:</td> 
            <td class="w1"><?php echo $this->allShopBuyMemberCount; ?></td>
        </tr>
        <tr>
            <td class="w0">新会员代购订购数:</td>
            <td class="w1"><?php echo $this->newShopBuyCount; ?></td>
            <td class="w0">新会员代购金额:</td>
            <td class="w1"><?php echo number_format($this->newShopBuyMoney,2); ?></td>
            <td class="w0">代购新会员数:</td> 
            <td class="w1"><?php echo $this->newShopBuyMemberCount; ?></td>
        </tr>
        <tr>
            <td class="w0">老会员代购订购数:</td>
            <td class="w1"><?php echo $this->orderShopBuyCount; ?></td>
            <td class="w0">老会员代购金额:</td> 
            <td class="w1"><?php echo number_format($this->orderShopBuyMoney,2); ?></td>
            <td class="w0">代购老会员数:</td> 
            <td class="w1"><?php echo $this->orderShopBuyMemberCount; ?></td>
        </tr>
    </table>
</div>

<div style="margin-top: 38px;">
    <font size="3"><b>会员充值的总金额：</b>¥<?php echo $this->amountOfThePrepaid?$this->amountOfThePrepaid:"0"; ?></font><br/><br/> 
    <font size="3"><b>会员消费的总金额：</b>¥<?php echo $this->amountOfTheConsumption?$this->amountOfTheConsumption:"0"; ?></font><br/><br/>
    <font size="3"><b>会员的总余额：</b>¥<?php echo $this->balance; ?></font>    
</div>

<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#starttime" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
        $( "#endtime" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>
